// components/order-card/order-card.js
Component({
    properties: {
      order: {
        type: Object,
        value: {}
      }
    },
    data: {},
    methods: {
      // 点击卡片，跳转到订单状态详情页
      goToDetail: function() {
        this.triggerEvent('detail', { orderId: this.properties.order._id });
      },
      // 点击“再来一单”
      handleReprint: function() {
        // 将当前订单的所有信息通过事件传递出去
        this.triggerEvent('reprint', { orderInfo: this.properties.order });
      }
    }
  });